package com.woniu.test01;

import com.alibaba.fastjson.JSONObject;

import java.util.HashMap;
import java.util.Map;

public class StudentTest {
    public static void StudentTest(){
        Student s1=new Student("张三",15,"男");
        Student s2=new Student("李四",15,"男");
        Student s3=new Student("王五",15,"男");
         String jsonString = JSONObject.toJSONString(s1);
        System.out.println(jsonString);

        Map<String,Student> studentMap=new HashMap<>();
        studentMap.put("<UNK>",s1);
        studentMap.put("<UNK>",s2);
        studentMap.put("<UNK>",s3);
    }

    public static void main(String[] args) {
        StudentTest();
    }
}
